T h e   a v a i l a b i l i t y   o f   w a t e r   f r o m   r i v e r   v a l l e y s   w a s   c r i t i c a l   t o   t h e   r i s e   o f   m a n y   g r e a t   e a r l y   c i v i l i z a t i o n s ,   b u t   r i v e r s   a l s o   p r e s e n t e d   d a n g e r s .   F o r   e x a m p l e ,   f l o o d i n g   w a s   a   n e a r l y   a n n u a l   e v e n t   i n   E g y p t   t h a t   c o u l d   c a u s e   w i d e s p r e a d   d e s t r u c t i o n .   T h e   a n c i e n t s   i m p r o v e d   t h e i r   e n g i n e e r i n g   a n d   l e a r n e d   t o   c o n t r o l   f l o o d i n g ,   o r   a t   l e a s t   m i n i m i z e   i t s   n e g a t i v e   e f f e c t s .   L e v e e s   c o u l d   k e e p   t h e   r i v e r   w i t h i n   i t s   b a n k s   i n   s o m e   p l a c e s ,   w h i l e   e n c o u r a g i n g   i t   t o   f l o o d   i n   o t h e r s .   A   r i v e r   t h a t   f l o o d e d   u n d e r   c o n t r o l l e d   c o n d i t i o n s   w o u l d   d e p o s i t   n u t r i e n t - r i c h   s i l t   o n t o   f i e l d s ,   a n d   t h u s   c o u l d   b e   h a r n e s s e d   f o r   t h e   b e n e f i t   o f   f o o d   p r o d u c t i o n . 